<?php
require 'config.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="zh-cn" xmlns="http://www.w33.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
	<title>旧衣物回收</title>
	<link rel="stylesheet" type="text/css" href="css/bottom.css" charset=utf-8>
	
</head>

<body>
	<div class="info_list">
		<?php
		$query  = "SELECT * FROM goods WHERE hot='1' AND state='0' AND kucun='1'  ORDER BY goodsid DESC";
		$result = mysqli_query($config,$query) or die('SQL语句有误：'.mysql_error());
		$row=mysqli_fetch_array($result);
		?>
		<?php for($j=0;$j<6;$j++){?>
			<ul>
				<?php for($i=0;$i<3;$i++){ ?>
					<li>
						<div class="img">
							<a href="detail.php?key_id=<?php echo $row['goodsid'];?>"><img src="images/goods/<?php echo $row['bigtypeid'];?>/<?php echo $row['smalltypeid'];?>/<?php echo $row['picture']?>" /></a>
						</div>
						<p>
							<a href="detail.php?key_id=<?php echo $row['goodsid'];?>"><?php echo $row['goodsname'];?></a><span><?php echo $row['leixing'];?></span><span style="float: right;"><s>￥<?php echo $row['yuanjia'];?></s></span><span style="float: right; color: #ff6600;">￥<?php echo $row['price'];?></span>
						</p>
					</li>


					<?php $result++;$row=mysqli_fetch_array($result);?>	
				<?php }?>

			</ul>

		<?php }?>
	</div>







</body>

</html>